<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de">
   <head>
      <title><g:layoutTitle default="k-oo" /></title>
      <link rel="stylesheet" href="${resource(dir: 'css', file: 'admin.css')}" />
      <link rel="shortcut icon" href="${resource(dir: 'images',file: 'favicon.ico')}" type="image/x-icon" />
      <g:layoutHead />
      <g:javascript library="application" />
   </head>
   <body onload="${pageProperty(name:'body.onload')}">
	<div id="main">
		<div id="header">
			<a href="index.html" class="logo"><img src="${resource(dir:'images',file:'grails_logo.jpg')}" width="101" height="29" alt="Grails" /></a>
			<ul id="top-navigation">
				<li ${webRequest.getControllerName()==null?"class=\"active\"":""}><span><span><a href="${resource(dir:'/')}">Home</a></span></span></li>
				<li ${webRequest.getControllerName()=="user"?"class=\"active\"":""}><span><span><g:link controller="user">Users</g:link></span></span></li>
				<li ${webRequest.getControllerName()=="group"?"class=\"active\"":""}><span><span><g:link controller="group">Groups</g:link></span></span></li>
				<li ${webRequest.getControllerName()=="contactData"?"class=\"active\"":""}><span><span><g:link controller="contactData">Contacts</g:link></span></span></li>
			</ul>
		</div>
		<div id="middle">
			<div id="left-column">
				<h3>Grum</h3>
				<ul class="nav">
				<g:if test="${session.user != null}">
					<li><g:link controller="user" action="doLogout">logout</g:link></li>
				</g:if>
				<g:else>
					<li><g:link controller="user" action="login">login</g:link></li>
				</g:else>
				</ul>
				<h3>Manage</h3>
				<ul class="nav">
					<li><g:link controller="user">Users</g:link></li>
					<li><g:link controller="group">Groups</g:link></li>
					<li><g:link controller="contactData">Contacts</g:link></li>
				</ul>
				<a href="www.grails.org" class="link">Grails Homepage</a>
				<a href="www.k-oo.de" class="link">k-oo</a>
			</div>
   			<g:layoutBody />
		</div>
		<div id="footer" />
	</div>
   </body>
</html>